package com.appjishu.web.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 
 * </p>
 *
 * @author edmond
 * @since 2021-11-18
 */
@ApiModel("段位")
@TableName("fly_level")
public class StLevel implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "最小值")
    private BigDecimal minScore;
    @ApiModelProperty(value = "最大值")
    private BigDecimal maxScore;
    @ApiModelProperty(value = "段位名称")
    private String name;
    @ApiModelProperty(value = "等级")
    private Integer level;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public BigDecimal getMinScore() {
        return minScore.setScale(2, RoundingMode.HALF_UP);
    }

    public void setMinScore(BigDecimal minScore) {
        this.minScore = minScore;
    }
    public BigDecimal getMaxScore() {
        return maxScore.setScale(2, RoundingMode.HALF_UP);
    }

    public void setMaxScore(BigDecimal maxScore) {
        this.maxScore = maxScore;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "StLevel{" +
            "id=" + id +
            ", minScore=" + minScore +
            ", maxScore=" + maxScore +
            ", name=" + name +
            ", level=" + level +
        "}";
    }
}
